<!DOCTYPE html>
<html style="height: 100%">
   <head>
       <meta charset="utf-8">
   </head>
   <body style="height: 100%; margin: 0">
       <div id="container" style="height: 100%"></div>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/echarts.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-gl/echarts-gl.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts-stat/ecStat.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/dataTool.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/china.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/map/js/world.js"></script>
       <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/echarts/extension/bmap.min.js"></script>
       <script type="text/javascript" src="http://echarts.baidu.com/gallery/vendors/simplex.js"></script>
       <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
    title: {
        text: 'APP-终端',
        left: 'center',
        top:'5%'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        left: '6%',
        bottom: '90%',
    },
    grid: {
        left: '6%',
        right: '4%',
        bottom: '10%',
        top:'20%',
        containLabel: true
    },
   
    xAxis: {
        type: 'category',
        boundaryGap: false,
        name: '时间',
        data: ['2018/02/08 05:30:00','2018/02/08 06:00:00','2018/02/08 07:30:00','2018/02/08 08:00:00','2018/02/08 09:00:00','2018/02/08 10:00:00','2018/02/08 11:00:00']
    },
    yAxis: {
        type: 'value',
        name:'登录数'
    },
    series: [
        {
            type:'line',
            stack: '总量',
            data:[5, 10, 11, 15, 23, 13, 20]
        },
    ]
};

;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
       </script>
   </body>
</html>